package com.lebang.service.cences;

import com.lebang.model.cences.OsCencesModel;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * 新手任务
 *
 * @Author xwj
 * @Date 2020-04-09
 */
@Service
public class CencesOsOsvService {

    public Integer countAll(List<OsCencesModel> list) {
        AtomicInteger all = new AtomicInteger(0);
        list.forEach(s -> {
            all.addAndGet(s.getCount());
        });
        return all.get();
    }
}
